<!DOCTYPE html>
<html>
  <head>
    <meta charset="utf-8" />
    <title>Sample</title>
  </head>

  <body>
    <p>Hello World!</p>
    <pre id="sample_account"></pre>

    <script type="text/javascript">
      window.addEventListener('message', function(e) {
        if(e.source != window.parent) return;
        document.getElementById("sample_account").innerHTML = e.data;
      });

      wechat_share_data = {
        id: null, // the id of share tag, can be empty
        title: 'furion',  // share title, can't be empty
        desc: 'furion desc',  // share desc, can't be empty
        img_url: 'http://www.juncaijinfu.com:9528/img/logo.png', // share thumb url, can't be empty
        link: null   // if empty, it will be the url of the wechat verison page
      }

      if(window.parent != window) {
        window.parent.postMessage({wechat_share_data: wechat_share_data}, '*');
      }
    </script>
  </body>

</html>